<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CMessagingStorage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_messaging_storage.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="interface_c_messaging_storage-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CMessagingStorage类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_c_messaging_storage_8h_source.html">CMessagingStorage.h</a>&gt;</code></p>
<div class="dynheader">
类 CMessagingStorage 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_messaging_storage.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a68b908bfd4784f7a047e3fcbb5037139"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_messaging_storage.html#a68b908bfd4784f7a047e3fcbb5037139">initWithService:</a></td></tr>
<tr class="memdesc:a68b908bfd4784f7a047e3fcbb5037139"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化存储器。  <a href="interface_c_messaging_storage.html#a68b908bfd4784f7a047e3fcbb5037139">更多...</a><br /></td></tr>
<tr class="separator:a68b908bfd4784f7a047e3fcbb5037139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3425e26b0f0088cb5e00508bf1946cef"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_messaging_storage.html#a3425e26b0f0088cb5e00508bf1946cef">open:domain:</a></td></tr>
<tr class="memdesc:a3425e26b0f0088cb5e00508bf1946cef"><td class="mdescLeft">&#160;</td><td class="mdescRight">开启存储器。  <a href="interface_c_messaging_storage.html#a3425e26b0f0088cb5e00508bf1946cef">更多...</a><br /></td></tr>
<tr class="separator:a3425e26b0f0088cb5e00508bf1946cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d64cfedf149016d35b0687801c3542"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_messaging_storage.html#ad7d64cfedf149016d35b0687801c3542">close</a></td></tr>
<tr class="memdesc:ad7d64cfedf149016d35b0687801c3542"><td class="mdescLeft">&#160;</td><td class="mdescRight">关闭存储器。  <a href="interface_c_messaging_storage.html#ad7d64cfedf149016d35b0687801c3542">更多...</a><br /></td></tr>
<tr class="separator:ad7d64cfedf149016d35b0687801c3542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f86214e89f78d2b19077ca0b5de8360"><td class="memItemLeft" align="right" valign="top">(UInt64)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_messaging_storage.html#a7f86214e89f78d2b19077ca0b5de8360">queryLastMessageTime</a></td></tr>
<tr class="memdesc:a7f86214e89f78d2b19077ca0b5de8360"><td class="mdescLeft">&#160;</td><td class="mdescRight">查询最近一条消息的时间戳。  <a href="interface_c_messaging_storage.html#a7f86214e89f78d2b19077ca0b5de8360">更多...</a><br /></td></tr>
<tr class="separator:a7f86214e89f78d2b19077ca0b5de8360"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5020e0dc7880827fde7ca0df36a4f52e"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_messaging_storage.html#a5020e0dc7880827fde7ca0df36a4f52e">updateMessage:</a></td></tr>
<tr class="memdesc:a5020e0dc7880827fde7ca0df36a4f52e"><td class="mdescLeft">&#160;</td><td class="mdescRight">更新消息。该方法将同时更新消息表和最近消息表。  <a href="interface_c_messaging_storage.html#a5020e0dc7880827fde7ca0df36a4f52e">更多...</a><br /></td></tr>
<tr class="separator:a5020e0dc7880827fde7ca0df36a4f52e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数文档</h2>
<a id="ad7d64cfedf149016d35b0687801c3542"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7d64cfedf149016d35b0687801c3542">&#9670;&nbsp;</a></span>close</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) close </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>关闭存储器。 </p>

</div>
</div>
<a id="a68b908bfd4784f7a047e3fcbb5037139"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68b908bfd4784f7a047e3fcbb5037139">&#9670;&nbsp;</a></span>initWithService:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithService: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_messaging_service.html">CMessagingService</a> *)&#160;</td>
          <td class="paramname"><em>service</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化存储器。 </p>

</div>
</div>
<a id="a3425e26b0f0088cb5e00508bf1946cef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3425e26b0f0088cb5e00508bf1946cef">&#9670;&nbsp;</a></span>open:domain:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) open: </td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>contactId</em></td>
        </tr>
        <tr>
          <td class="paramkey">domain:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>domain</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>开启存储器。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">contactId</td><td>指定联系人 ID 。 </td></tr>
    <tr><td class="paramname">domain</td><td>指定域。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>开启成功返回 <code>TRUE</code> ，否则返回 <code>FALSE</code> 。 </dd></dl>

</div>
</div>
<a id="a7f86214e89f78d2b19077ca0b5de8360"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f86214e89f78d2b19077ca0b5de8360">&#9670;&nbsp;</a></span>queryLastMessageTime</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) queryLastMessageTime </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>查询最近一条消息的时间戳。 </p>
<dl class="section return"><dt>返回</dt><dd>返回本地最近一条消息的时间戳。 </dd></dl>

</div>
</div>
<a id="a5020e0dc7880827fde7ca0df36a4f52e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5020e0dc7880827fde7ca0df36a4f52e">&#9670;&nbsp;</a></span>updateMessage:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) updateMessage: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_message.html">CMessage</a> *)&#160;</td>
          <td class="paramname"><em>message</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>更新消息。该方法将同时更新消息表和最近消息表。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>指定消息实体。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果更新的消息是已存在的返回 <code>TRUE</code> ，如果消息未找到，插入新数据时返回 <code>FALSE</code> 。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_messaging_storage_8h_source.html">CMessagingStorage.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_messaging_storage.html">CMessagingStorage</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
